{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 2,
   "source": [
    "books = {'title': 'Python入门', 'price': 45}\r\n",
    "print(books, type(books), books['price'])"
   ],
   "outputs": [
    {
     "output_type": "stream",
     "name": "stdout",
     "text": [
      "{'title': 'Python入门', 'price': 45} <class 'dict'> 45\n"
     ]
    }
   ],
   "metadata": {}
  },
  {
   "cell_type": "markdown",
   "source": [
    "## Markdown 单元格\r\n",
    "\r\n",
    "Jupyter Nodebook中的单元格有两类：可运行代码的单元格和Markdown单元格。在VS Code提供的界面工具栏中，有创建不同单元格的按钮.\r\n",
    "\r\n",
    "可以使用绝对地址来指定资源所在位置。\r\n",
    "```\r\n",
    "![xbmu](https://tse1-mm.cn.bing.net/th/id/OIP-C.1iSlknW2Wn15Af270v2VQgHaFk?w=249&h=187&c=7&r=0&o=5&pid=1.7)\r\n",
    "```\r\n",
    "\r\n",
    "![xbmu](https://tse1-mm.cn.bing.net/th/id/OIP-C.1iSlknW2Wn15Af270v2VQgHaFk?w=249&h=187&c=7&r=0&o=5&pid=1.7)\r\n",
    "\r\n",
    "还可以使用相对地址指定资源所在位置，使用`..`代表上一级目录，使用`.`代表同级目录。\r\n",
    "\r\n",
    "```\r\n",
    "![图片说明文字](../images/20210928110055.png)\r\n",
    "<!-- 请注意相对地址的写法：1. 反斜线是/,不是\\；2.不要使用指向具体盘符的地址：如 C:\\Users\\Administrator\\Desktop\\sda-2020-2\\05\\notebook.ipynb-->\r\n",
    "```\r\n",
    "![图片说明文字](../images/20210928110055.png)\r\n"
   ],
   "metadata": {}
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "source": [
    "import mymodule\r\n",
    "print(mymodule.foo)\r\n",
    "mymodule.hello()"
   ],
   "outputs": [
    {
     "output_type": "stream",
     "name": "stdout",
     "text": [
      "100\n",
      "i am from mymodule.py\n"
     ]
    }
   ],
   "metadata": {}
  }
 ],
 "metadata": {
  "orig_nbformat": 4,
  "language_info": {
   "name": "python",
   "version": "3.9.7",
   "mimetype": "text/x-python",
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "pygments_lexer": "ipython3",
   "nbconvert_exporter": "python",
   "file_extension": ".py"
  },
  "kernelspec": {
   "name": "python3",
   "display_name": "Python 3.9.7 64-bit"
  },
  "interpreter": {
   "hash": "11f1dc213e07634baa4c5c321dec03c05dafae643c50f20e6d1a492290c05dc2"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}